import request from '@/utils/request'

// 获取用户信息
export function getMemberInfo() {
	return request({
		url: '/front/member/getMemberInfo',
		method: 'POST'
	})
}
//获取手机号
export function checkMobile() {
	return request({
		url: '/front/member/checkMobile',
		method: 'POST'
	})
}
// 授权登录
export function miniProgramLogin(data) {
	return request({
		url: '/front/member/miniProgramLogin',
		method: 'POST',
		data,
		isAuth: false,
		isLoading: false
	})
}

// 充值设置
export function rechargeSets() {
	return request({
		url: '/front/recharge/rechargeSets',
		method: 'GET'
	})
}

// 充值
export function recharge(data) {
	return request({
		url: '/front/recharge/recharge',
		method: 'POST',
		data
	})
}

// 钱包明细
export function monthes(data) {
	return request({
		url: '/front/walletRecord/monthes',
		method: 'GET',
		data
	})
}

// 修改用户信息
export function updateMemberInfo(data) {
	return request({
		url: '/front/member/updateMemberInfo',
		method: 'POST',
		data
	})
}


// 获取手机号
export function getPhone(data) {
	return request({
		url: '/front/member/getPhone',
		method: 'POST',
		data
	})
}
